<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>HttpQueryString singleton</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpquerystring.set.html">HttpQueryString::set</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httpquerystring.toarray.html">HttpQueryString::toArray</a></div>
 <div class="up"><a href="class.httpquerystring.html">HttpQueryString</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="httpquerystring.singleton" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">HttpQueryString::singleton</h1>
  <p class="verinfo">(PECL pecl_http &gt;= 0.25.0)</p><p class="refpurpose"><span class="refname">HttpQueryString::singleton</span> &mdash; <span class="dc-title">HttpQueryString singleton</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-httpquerystring.singleton-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">static public</span>
   <span class="type"><a href="class.httpquerystring.html" class="type HttpQueryString">HttpQueryString</a></span> <span class="methodname"><strong>HttpQueryString::singleton</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$global</code><span class="initializer"> = true</span></span>
  ] )</div>


  <p class="para rdfs-comment">
   Get a single instance (differentiates between the global setting).
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-httpquerystring.singleton-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">global</code></em></dt>

     <dd>

      <p class="para">
       whether to operate on <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var></var> and
       <var class="varname"><var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER['QUERY_STRING']</a></var></var>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-httpquerystring.singleton-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns always the same <a href="class.httpquerystring.html" class="classname">HttpQueryString</a> instance regarding the global setting.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-httpquerystring.singleton-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws <strong class="classname">HttpRuntimeException</strong>.
  </p>
 </div>



 


 


 


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpquerystring.set.html">HttpQueryString::set</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="httpquerystring.toarray.html">HttpQueryString::toArray</a></div>
 <div class="up"><a href="class.httpquerystring.html">HttpQueryString</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
